<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.jiadakeji.ppm.modules.sys.utils.*" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>发票查询</title>
    <meta name="decorator" content="default"/>
    <link href="${ctxStatic}/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <script src="${ctxStatic}/jquery-form/jquery.form.js" type="text/javascript"></script>
    <link href="${ctxStatic}/css/animate.min.css" rel="stylesheet">
    <link href="${ctxStatic}/css/common.css" rel="stylesheet">
    <link href="${ctxStatic}/css/style.min.css?v=4.0.0" rel="stylesheet">
    <script type="text/javascript">
        $(document).ready(function() {
            //$("#name").focus();
            $("#inputForm").validate({
                submitHandler: function(form){

                },
                errorContainer: "#messageBox",
                errorPlacement: function(error, element) {
                    $("#messageBox").text("输入有误，请先更正。");
                    if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
                        error.appendTo(element.parent().parent());
                    } else {
                        error.insertAfter(element);
                    }
                }
            });
        });
    </script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="col-sm-12">
        <div class="tabs-container ">
            <ul class="nav nav-tabs">
                <li><a href="${ctx}/invioce/invioceSearch">查询</a></li>
                <li class="active"><a href="${ctx}/invioce/invioceStatic">统计</a></li>
            </ul>
            <div class="tab-content right" >
            <div id="tab-1" class="tab-pane active">
                <div class="panel-body boxPanel">
                    <form:form id="searchForm" modelAttribute="findInvioceCondition" action="${ctx}/invioce/invioceStatic" method="post" class="breadcrumb form-search">
                        <ul class="ul-form">
                            <li>
                                <label>发票类型：</label>
                                <form:select path="fplxdm" cssClass="input-mediumSelect">
                                    <form:options items="${fns:getDictList('fplsdm') }" itemValue="value" itemLabel="label" />
                                </form:select>
                            </li>
                            <li>
                                <label>查询方式：</label>
                                <input type="radio" name="searchType" value="1" checked>时间查询
                            </li>
                            <li>
                                <label class="control-label">查询日期：</label>
                                <input name="startDate" type="text" readonly="readonly" maxlength="50" class="input-large Wdate "
                                       value="<fmt:formatDate value="${findInvioceCondition.startDate}" pattern="yyyy-MM-dd"/>"
                                       onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
                            </li>
                            <li>
                                <label>开票人：</label>
                                <input id="kpr" name="kpr" value="${kpr}" htmlEscape="false" maxlength="10" class="input-medium"/>
                            </li>
                            <li class="btns">
                                <input id="btnSubmit" class="btn btn-warning" type="submit" value="查询"/>
                            </li>
                        </ul>
                    </form:form>
                    <sys:message content="${message}"/>
                    <div  class="tableTHwidth">
                        <table  class="table table-striped tablestyle" >
                        </table>
                    </div>
                    <div class="tableHeight2">
                        <table id="contentTable" class="table table-striped tablestyle">
                            <thead>
                            <tr>
                                <th>开票人</th>
                                <th>开票张数</th>
                                <th>税额</th>
                                <th>合计税额</th>
                                <th>价税合计</th>
                                <th>开票日期</th>

                            </tr>
                        </thead>
                        <tbody>
                            <c:forEach items="${list}" var="searchInvioceInfo">
                                <tr>
                                    <td>${searchInvioceInfo.kpr}</td>
                                    <td>${searchInvioceInfo.ghdwmc}</td>
                                    <td>${searchInvioceInfo.hjse}</td>
                                    <td>${searchInvioceInfo.hjje}</td>
                                    <td>${searchInvioceInfo.jshj}</td>
                                    <td>${searchInvioceInfo.kprq}</td>

                                </tr>
                            </c:forEach>
                        </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</body>
</html>